package com.xiguaji.tiktok.v1.tiktok.collect.repository;

import com.xiguaji.tiktok.v1.tiktok.collect.model.BloggerCollection;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface BloggerCollectionRepository extends CrudRepository<BloggerCollection,Long>, BloggerCollectionExtRepository {

    Optional<BloggerCollection> findByBloggerIdAndUserId(long bloggerId,long userId);

    int countByUserId(long userId);
}
